import os
import django
import datetime
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'super_blog.settings.local')
django.setup()
from polls.models import Choice, Question
from django.utils import timezone
from django.core.paginator import Paginator

if __name__ == '__main__':
    item_list = ['john', 'paul', 'george', 'ringo']
    p = Paginator(item_list, 2)
    print(p.num_pages)
    page2 = p.page(2)
    print(page2.object_list)
    print(page2.number)
    # print(page2.next_page_number())

